/**
 * @Title: WeixinpayConfig
 * @Package cn.com.artemis.yqpay.config
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-林威
 * @date 2017/1/10 14:16
 * @version V1.0
 */
package cn.com.yiqi.wsc.config.weixin;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 *
 *@ClassName: WeixinpayConfig
 * Description: TODO
 * @author 会员系统组-林威
 * @date 2017/1/10 14:16
 *
 */
@Component
public class WeixinpayConfig {

    //微信支付分配的公众账号ID（企业号corpid即为此appId）
    @Value("#{APP_PROP['weixinpay.appid']}")
    private String appid;
    //微信支付分配的商户号
    @Value("#{APP_PROP['weixinpay.mch_id']}")
    private String mch_id;

    @Value("#{APP_PROP['weixinpay.notify_url']}")
    private String notify_url;

    //key设置路径：微信商户平台(pay.weixin.qq.com)-->账户设置-->API安全-->密钥设置
    @Value("#{APP_PROP['weixinpay.key']}")
    private String key;

    @Value("#{APP_PROP['weixinpay.trade_type']}")
    private String trade_type;

    @Value("#{APP_PROP['weixinpay.precreate_Url']}")
    private String precreate_Url;

    @Value("#{APP_PROP['weixinpay.appsecret']}")
    private String appsecret;

    @Value("#{APP_PROP['weixinpay.redirect_uri']}")
    private String redirectUrl;

    @Value("#{APP_PROP['weixinpay.birthDayNoticeTemplateId']}")
    private String birthDayNoticeTemplateId;

    //微信企业支付证书存放路径
    @Value("#{APP_PROP['weixinpay.certPath']}")
    private String certPath;

    public String getCertPath() {
        return certPath;
    }

    public void setCertPath(String certPath) {
        this.certPath = certPath;
    }

    public String getBirthDayNoticeTemplateId() {
        return birthDayNoticeTemplateId;
    }

    public void setBirthDayNoticeTemplateId(String birthDayNoticeTemplateId) {
        this.birthDayNoticeTemplateId = birthDayNoticeTemplateId;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public String getPrecreate_Url() {
        return precreate_Url;
    }

    public void setPrecreate_Url(String precreate_Url) {
        this.precreate_Url = precreate_Url;
    }

    public String getAppid() {
        return appid;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }

    public String getTrade_type() {
        return trade_type;
    }

    public void setTrade_type(String trade_type) {
        this.trade_type = trade_type;
    }
}
